package fr.mywiki.view.web.struts.form.structure;

import org.apache.struts.action.ActionForm;

/**
 * Generic action form to display and deal with the tree structure.
 */
public abstract class TreeStructureForm extends ActionForm implements SelectSingleStructure {
	private static final long serialVersionUID = 1L;
	
	private SelectSingleStructController controller;
	
	/** Returns the name of the servlet : "*.do" */
	public abstract String getServletName();
	
	/** Additional code to execute when clicking the root node */
	public abstract String getAdditionalCodeRoot();
	
	/** Additional code to execute when clicking any other node */
	public abstract String getAdditionalCode();

	public SelectSingleStructController getSelectStructureController() {
		return controller;
	}

	public void setSelectStructureController(SelectSingleStructController controller) {
		this.controller = controller;
	}
}
